<template>
  <div>
    <basic-modal :modalOpt="modal" :footer="null" @closeModal="closeModal">
      <template>
        <img-form
          :zzPid="pid"
          :zhengZhaolx="zhengZhaolx"
          :editable="editable"
        ></img-form>
      </template>
    </basic-modal>
  </div>
</template>

<script>
import basicModal from '../common/basicModal'
import ImgForm from './ImgForm'

export default {
  components: {
    basicModal,
    ImgForm,
  },
  props: {
    editable: {
      default: true,
      required: false,
      type: Boolean
    },
  },
  data() {
    return {
      pid: null,
      zhengZhaolx:null,
      modal: {
        modalVisible: false,
        modalTitle: '查看证照',
        modalWidth: '800px',
      }
    }
  },
  computed: {},
  mounted() {},
  methods: {
    // 新增按钮 点击了新增
    showModal(pid,zhengZhaolx) {
      console.log('点击了证照查看',pid,zhengZhaolx)
      this.pid = pid
      this.zhengZhaolx=zhengZhaolx
      this.modal.modalVisible = true
      this.modal.modalTitle = '查看证照'
    },
    // 关闭模态详细框
    closeModal() {
      this.modal.modalVisible = false
      this.$emit('close')
    },
    // 保存成功关闭模态详细框
    closeModal2() {
      this.modal.modalVisible = false
      this.$emit('ok')
    },
    // 模态详细框提交按钮
    onSubmit(val) {
    },
  },
}
</script>

<style>
</style>